using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;

namespace PSE.Hosting.ServiceHoster.Services.DataContracts
{
    [DataContract(Namespace = "http://www.bovespa.com.br/ServiceHoster.Data", Name = "EndpointInfo")]
    public class EndpointInfo
    {
        #region Fields
        private string[] _wcfBindings;
        private string[] _availableBindingConfigurations;
        private string _address;
        private string _binding;
        private string _bindingConfiguration;
        private string _contract;
        #endregion

        #region Public Members

        [DataMember(IsRequired = true, Name = "WcfBindings", Order = 0)]
        public string[] WcfBindings
        {
            get { return _wcfBindings; }
            set { _wcfBindings = value; }
        }

        [DataMember(IsRequired = true, Name = "AvailableBindingConfigurations", Order = 1)]
        public string[] AvailableBindingConfigurations
        {
            get { return _availableBindingConfigurations; }
            set { _availableBindingConfigurations = value; }
        }

        [DataMember(IsRequired = true, Name = "Address", Order = 2)]
        public string Address
        {
            get { return _address; }
            set { _address = value; }
        }

        [DataMember(IsRequired = true, Name = "Binding", Order = 3)]
        public string Binding
        {
            get { return _binding; }
            set { _binding = value; }
        }

        [DataMember(IsRequired = true, Name = "BindingConfiguration", Order = 4)]
        public string BindingConfiguration
        {
            get { return _bindingConfiguration; }
            set { _bindingConfiguration = value; }
        }

        [DataMember(IsRequired = true, Name = "Contract", Order = 5)]
        public string Contract
        {
            get { return _contract; }
            set { _contract = value; }
        }

        #endregion
    }
}
